package melon.saber.core;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class ContextHolder implements ApplicationListener<ContextRefreshedEvent> {
	
	private static AbstractContext context;

	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		if (event.getApplicationContext().getParent() == null) {
			
		}
	}
	
	public AbstractContext getContext() {
		return context;
	}

}
